<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">
/* <![CDATA[ */

table, td
{
    border-color: #666;
    border-style: solid;
}
table, th
{
    border-color: #666;
    border-style: solid;
}

table
{
    border-width: 0 0 1px 1px;
    border-spacing: 0;
    border-collapse: collapse;
}
 
td
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}
th
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
}

/* ]]> */
</style>

</head>

<body style="font-family:Arial, Helvetica, sans-serif;">
Manage Bonus<br />
<table width="600" border="1" cellspacing="1" cellpadding="5">
<form action="" method="post">
  <tr>
    <th scope="col">Category</th>
    <th scope="col">Full Price</th>
    <th scope="col">Discount</th>
    <th scope="col">BottomLine</th>
    <th scope="col">visible</th>
  </tr>
<!--Org -->  
<?php 
if(!empty($this->bList)){
	foreach($this->bList as $key => $v){	
?>
  <tr>
    <td>
	<input name="id_cate[<?php echo $v['id_cate']?>]" type="hidden" value="<?php echo $v['id_cate']?>" />
	<input name="title_cate[<?php echo $v['id_cate']?>]" type="text" value="<?php echo $v['title_cate']?>" />
    </td>
    <td><input name="full_price[<?php echo $v['id_cate']?>]" type="text" value="<?php echo $v['full_price']?>" /></td>
    <td><input name="dis_price[<?php echo $v['id_cate']?>]" type="text" value="<?php echo $v['dis_price']?>" /></td>
    <td><input name="low_price[<?php echo $v['id_cate']?>]" type="text" value="<?php echo $v['low_price']?>" /></td>
    <td><input name="visible[<?php echo $v['id_cate']?>]" type="checkbox" value="1" <?php echo ($v['visible'])?'checked="checked"':''; ?> /></td>
  </tr>
<?php }
}
?>  
<!--Extra-->
<?php for($i=0;$i<10;$i++){?>
  <tr>
    <td><input name="category_new[]" type="text" /></td>
    <td><input name="full_price_new[]" type="text" /></td>
    <td><input name="dis_price_new[]" type="text" /></td>
    <td><input name="low_price_new[]" type="text" /></td>
    <td><input name="vis_new[]" type="checkbox" /></td>
  </tr> 
<?php }?>
<tr>
<td colspan="5" align="center">
<input name="" type="submit" />
</td>
</tr>  
</form>   
</table>

</body>
</html>
